/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.adou.quartz.action;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


@Component
public class PostSecServicesJob implements Job {

    private static final Logger logger = LoggerFactory.getLogger(PostSecServicesJob.class);

    @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {
        logger.info("------start services task run-------");
        //定时器业务逻辑
        String appid = arg0.getJobDetail().getKey().getName();
        if (appid == null || appid.equals("")) {
            logger.error("PostSecServices应用ID不能为空");
        } else {
            try {
                appid = appid.replace("postJob", "");
            } catch (Exception ex) {
                logger.error("PostSecServices推送异常错误" + ex.toString());
            }
        }
    }
}
